package com.github.wisdom.member.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;

import com.github.wisdom.member.dao.MemnerSignDao;
import com.github.wisdom.member.entity.MemnerSignEntity;
import com.github.wisdom.member.service.MemnerSignService;


@Service("memnerSignService")
public class MemnerSignServiceImpl extends ServiceImpl<MemnerSignDao, MemnerSignEntity> implements MemnerSignService<MemnerSignEntity> {

    @Override
    public PageUtils<MemnerSignEntity> queryPage(Map<String, Object> params) {
    	EntityWrapperHandle<MemnerSignEntity> ew = new EntityWrapperHandle<MemnerSignEntity>(params);
		Page<MemnerSignEntity> page = this.selectPage(new Query<MemnerSignEntity>(params).getPage(),ew);
		page.setTotal(this.selectCount(ew));
		return new PageUtils<MemnerSignEntity>(page);
    }
    @Override
    public List<MemnerSignEntity> queryPageByLike(Map<String, Object> params) {
    	return baseMapper.queryPageByLike(params);
    }
    

}
